<html>
<head>
<title>Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <link href="https://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
   <script src="https://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
   <script src="https://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
</head>

	<script>
	function getAnnouncement(){
		 var xhr = new XMLHttpRequest();
         xhr.open("GET", "Announcement", true);
         xhr.send();
         xhr.onreadystatechange = function(){
             if (xhr.readyState === 4 && xhr.status === 200) {
                 document.getElementById("announcement").innerHTML = xhr.responseText;
             }
         }
	}
	</script>

<body>

<nav class="navbar navbar-default" role="navigation">
   <div class="navbar-header">
      <b class="navbar-brand" style="padding-left: 30px;">NWPU Library - Login</b>
   </div>
   <div class="collapse navbar-collapse" id="example-navbar-collapse">
      <ul class="nav navbar-nav navbar-right">
         <li class="active"><a href="#">1</a></li>
         <li><a href="#">2</a></li>
         <li class="dropdown">
            <a href="" class="dropdown-toggle" data-toggle="dropdown" style="padding-right:35px">
               Help <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
               <li><a href="#">Forget Password</a></li>
               <li class="divider"></li>
               <li><a href="#">About</a></li>
            </ul>
         </li>
      </ul>
   </div></nav>
<div class="container bs-docs-container" style="width:100%;">
    <div class="row">
		<div class="col-md-6 col-md-offset-3">
          <div class="panel panel-warning panel-dismissable" style="margin:1% 1% 1% 1%;">
			<div class="panel-heading">
				<h3 class="panel-title">Announcement</h3>
				<button type="button" class="close" data-dismiss="panel" aria-label="Close">
  					<span aria-hidden="true"></span>
				</button>
			</div>
			<br>
			<div style="margin:0% 5% 5% 5%;">
				<b id = "announcement">Here we give out the announcement edited by librarian.</b><br>
				<button onclick="getAnnouncement()">update</button>
            </div>
		  </div>
        </div>
    </div>
	<div class="row">
		<div class="col-md-6 col-md-offset-3" role="main">
			<div class="panel panel-primary" style="margin:1% 1% 1% 1%;">
				<div class="panel-heading">
				  <h3 class="panel-title">Input Your Information</h3>
				</div>
				<div style="margin:0% 5% 5% 5%;">
					<div class="login-top"></div><br>	<b>Input Your Information to access to the system</b><br><br>
					<form method="post" action="launch1">
						<div class="input-group">
							<span class="input-group-addon">Account</span>
							<input type="text" class="form-control" name="info" placeholder="phoneNumber or Email address" required="">
						</div><br>
						<div class="input-group">
							<span class="input-group-addon">password</span>
							<input type="password" class="form-control" name="pwd" required="">
						</div><br>
						<button type="submit" class="btn btn-primary" style="width:100%;float:left;">Login</button><br><br>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>